Write it in front.
When we use Ajax, when we send data to the server, we can request the server using GET, or we can use post to request the server. So, when should we adopt the Get method, when should we use the Post method?
The
Introduction to HTTPThe HTTP protocol is an abbreviation for the Hyper Text Transfer Protocol (Hypertext Transfer Protocol), which is used to transfer hypertext to the local browser from the World Wide Web (www:world Wide Web) server.HTTP is a
"Message" Understanding the HTTP Protocol's Request/response (request response) Model family CatalogIntroduction Request/Response modelHttp://www.cnblogs.com/engraver-lxw/p/7550514.html"principle" Understanding the HTTP Protocol's Request/response
The http/1.1 standard has been a widely used and prevailing standard since its inception in 1999.Related documentsRfc2616:hypertext Transfer Protocol--http/1.1In RFC6585, the status codes 428, 429, 431, 511 are added inRFC2616 developed a series of
Httpcontext. Current. Request. servervariables
Request. servervariables ["url"]Back to server addressValue 0:/website1/default. aspx
Request. servervariables ["path_info"]Path information provided by the clientValue 0:/website1/default. aspx
For many web developers, they only need to generate simple requests and receive simple responses. However, for developers who want to master Ajax, you must fully understand the HTTP status code, readiness status, and XMLHttpRequest object. In this
Request and response
The process for the server to process the request:
Each time the server receives a request, it will open up a new thread for the request.
The server encapsulates the request data of the client into the request
Http defines different methods for interaction with the server. There are four basic methods: GET, POST, PUT, and DELETE. The full name of a URL is a resource descriptor. We can think that a URL address is used to describe resources on a network,
ajax:asynchronous JavaScript and XML (asynchronous JavaScript and XML)
Ajax is not a programming language, it's a technique to update parts of a Web page without reloading the entire page.
1Ajax Synchronous and asynchronous
Ajax
Request. ServerVariables ("Url ")Back to server address
Request. ServerVariables ("Path_Info ")Path information provided by the client
Request. ServerVariables ("Appl_Physical_Path ")Physical path corresponding to the application metadatabase
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.